<html>
<head><meta charset="utf-8"><title>rustc_target::abi::tylayout to rustc::ty::layoutcx · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc_target.3A.3Aabi.3A.3Atylayout.20to.20rustc.3A.3Aty.3A.3Alayoutcx.html">rustc_target::abi::tylayout to rustc::ty::layoutcx</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="179705401"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc_target%3A%3Aabi%3A%3Atylayout%20to%20rustc%3A%3Aty%3A%3Alayoutcx/near/179705401" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc_target.3A.3Aabi.3A.3Atylayout.20to.20rustc.3A.3Aty.3A.3Alayoutcx.html#179705401">(Nov 02 2019 at 14:55)</a>:</h4>
<p>How do I go from a <code>rustc_target::abi::TyLayout</code> to a <code>rustc::LayoutCx</code> ?</p>



<a name="179705447"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc_target%3A%3Aabi%3A%3Atylayout%20to%20rustc%3A%3Aty%3A%3Alayoutcx/near/179705447" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc_target.3A.3Aabi.3A.3Atylayout.20to.20rustc.3A.3Aty.3A.3Alayoutcx.html#179705447">(Nov 02 2019 at 14:56)</a>:</h4>
<p><span class="user-mention" data-user-id="119009">@eddyb</span> and why do we have so many layout types ?</p>



<a name="179720280"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc_target%3A%3Aabi%3A%3Atylayout%20to%20rustc%3A%3Aty%3A%3Alayoutcx/near/179720280" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc_target.3A.3Aabi.3A.3Atylayout.20to.20rustc.3A.3Aty.3A.3Alayoutcx.html#179720280">(Nov 02 2019 at 21:42)</a>:</h4>
<p>uhhhh</p>



<a name="179720288"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc_target%3A%3Aabi%3A%3Atylayout%20to%20rustc%3A%3Aty%3A%3Alayoutcx/near/179720288" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc_target.3A.3Aabi.3A.3Atylayout.20to.20rustc.3A.3Aty.3A.3Alayoutcx.html#179720288">(Nov 02 2019 at 21:43)</a>:</h4>
<p><span class="user-mention" data-user-id="132920">@gnzlbg</span> a <code>TyLayout</code> is a <code>Ty</code> and its layout. a <code>LayoutCx</code> is an internal type used to compute layouts</p>



<a name="179720330"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/rustc_target%3A%3Aabi%3A%3Atylayout%20to%20rustc%3A%3Aty%3A%3Alayoutcx/near/179720330" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/rustc_target.3A.3Aabi.3A.3Atylayout.20to.20rustc.3A.3Aty.3A.3Alayoutcx.html#179720330">(Nov 02 2019 at 21:44)</a>:</h4>
<p>it's pretty much like asking how to go from <code>Ty</code> to <code>TyCtxt</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>